% 安装Python模块的脚本 %

@echo off

echo Installing pyserial...
python -m pip install pyserial -i https://pypi.tuna.tsinghua.edu.cn/simple

echo Installing keyboard...
python -m pip install keyboard -i https://pypi.tuna.tsinghua.edu.cn/simple

if %errorlevel% neq 0 (
    echo Error occurred during installation.
    exit /b %errorlevel%
)

echo Module installed successfully.
